// tag references
var root = $("#root");

// utility funcions
function rootnav(pth) {
	$.get(pth+".jsp", function(ret) {
		root.html(ret);
		$.getScriptWithTag(pth+".js");
	});
}
// screen set-up
var subpath = window.location.href;
subpath = subpath.split(/#/);
if (subpath.length > 1) {
	switch (subpath[1]) {
	case "listcot":
		rootnav("cotacao/listcotacao");
		break;
	case "novacot":
		rootnav("cotacao/novacotacao");
		break;
	case "listpro":
		rootnav("proposta/consultaproposta");
		break;
	default:
		rootnav("adm/menu");
		break;
	}
} else {
	rootnav("adm/menu");
}
//